package me.zhengjie.modules.ejweixin.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author cy
* @date 2025-04-22
**/
@Data
@TableName("ng_case_info")
public class NgCaseInfo implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "所属门店")
    private String rese;

    @ApiModelProperty(value = "所属区县")
    private String district;

    @ApiModelProperty(value = "所属团队")
    private Integer teacherId;

    @ApiModelProperty(value = "户型")
    private String houseType;

    @ApiModelProperty(value = "房屋面积m²")
    private String housingArea;

    @ApiModelProperty(value = "浏览次数")
    private Integer numberViews;

    @ApiModelProperty(value = "案例数")
    private Integer caseNum;

    @ApiModelProperty(value = "预约次数")
    private Integer numberAppointments;

    @ApiModelProperty(value = "1免费设计2免费看房3免费报价")
    private String post;

    @ApiModelProperty(value = "详情HTML")
    private String detailsTxt;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "创建日期")
    private Timestamp createTime;

    @ApiModelProperty(value = "更新时间")
    private Timestamp updateTime;

    @ApiModelProperty(value = "施工类型")
    private String constructionType;

    @ApiModelProperty(value = "收藏数")
    private Integer collectCount;

    @TableField(exist = false)
    private String isLike;

    @TableField(exist = false)
    private String isCollect;

    @TableField(exist = false)
    private String teacherName;

    private String tittleImg;

    @ApiModelProperty(value = "标题")
    private String tittle;

    @TableField(exist = false)
    private List<NgCaseImg> caseImg;

    @TableField(exist = false)
    private List<String> jpgFileName;

    @TableField(exist = false)
    private String vrLink;

    @ApiModelProperty(value = "人气")
    private Integer popularity;

    @ApiModelProperty(value = "室外风格")
    private String style;

    @ApiModelProperty(value = "庭院风格")
    private String outdoorStyle;

    @ApiModelProperty(value = "建筑风格")
    private String buildingStyle;

    @ApiModelProperty(value = "设计格局")
    private String structureDesign;

    @ApiModelProperty(value = "1是设计案例 2是完工案例")
    private String caseType;

    public void copy(NgCaseInfo source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
